package JAVA;

public class work386 {
    public static void main(String[] args) {
        int i=0;
        System.out.println("21世纪所有闰年：");
        for (int j=2000;j<=2100;j++){
            if ((j%4==0&&j%100==0)||(j%400==0)){
                System.out.println(j);
                if (++i%5==0){
                    System.out.println();
                }else{
                    System.out.print(",");
                }
            }
            if (i%5!=0){
                System.out.println();
                System.out.print("共有"+i+"个闰年\n");
            }
        }
    }
}
